<?php include('cabecalho.php'); ?>
<div id="miolo">
    <div id="categorias">
        <?php require_once 'menu_categorias.php'; ?>
    </div>
    <?php
    $metodo = "buscaId";
    require_once '../../Controller/Controller.Cesta.php';
    ?>
    <div id="conteudo2">
        <div class="containers">
            <h1>Cesta de compras</h1>
            <table id="tb_cesta">
                <tr>
                    <th>Descrição</th>
                    <th>Excluir</th>
                    <th>Quantidade</th>
                    <th>Preço</th>
                    <th>Total</th>
                </tr>
                <form action="Controller.Cesta.php?acao=up" method="post">
            <?php
                foreach ($_SESSION['cesta'] as $p){
                    echo '<tr><td>' . $p->getNome() . '</td>';
                    echo '<td><a href="../../Controller/teste.php?met=del&id=' . $p->getId() . '">Exluir</a></td>';
                    echo '<td><input type="text" name="quantidade" size="3"/></td>';
                    echo '<td>' . $p->getValor() . '</td>';
                    echo '</tr>';
                }

             
            ?>
                    </form>
            </table>
        </div>
        
    </div>
</div>
<?php include 'rodape.php'; ?>
